/*
 * Interfaz grafica de la calculadora
 */
package calculadora;

import javax.swing.JOptionPane;

/**
 *
 * @author GiLb3rTh
 */
public class interfazCalculadora extends javax.swing.JFrame {

    funciones funcionesCalc = new funciones();

    /** Creates new form interfazCalculadora */
    public interfazCalculadora() {
        /*try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                // Solo estilo por nombre Windows
                if ("Windows".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }

            }
        } catch (Exception ex) {
            System.out.println(ex);
        }*/
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        campoResultado = new javax.swing.JTextField();
        botonNum7 = new javax.swing.JButton();
        botonNum9 = new javax.swing.JButton();
        botonNum8 = new javax.swing.JButton();
        botonNum4 = new javax.swing.JButton();
        botonNum5 = new javax.swing.JButton();
        botonNum6 = new javax.swing.JButton();
        botonNum1 = new javax.swing.JButton();
        botonNum2 = new javax.swing.JButton();
        botonNum3 = new javax.swing.JButton();
        botonNum0 = new javax.swing.JButton();
        botonIgual = new javax.swing.JButton();
        botonPunto = new javax.swing.JButton();
        botonDividir = new javax.swing.JButton();
        botonMultiplicar = new javax.swing.JButton();
        botonSumar = new javax.swing.JButton();
        botonRestar = new javax.swing.JButton();
        barraDeMenu = new javax.swing.JMenuBar();
        menuArchivo = new javax.swing.JMenu();
        menuItemLimpiar = new javax.swing.JMenuItem();
        menuItemSalir = new javax.swing.JMenuItem();
        menuAyuda = new javax.swing.JMenu();
        menuItemSobreAutor = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Calculadora");

        campoResultado.setBackground(new java.awt.Color(255, 255, 255));
        campoResultado.setEditable(false);
        campoResultado.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        campoResultado.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        campoResultado.setText("0");

        botonNum7.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum7.setText("7");
        botonNum7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum7MouseClicked(evt);
            }
        });

        botonNum9.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum9.setText("9");
        botonNum9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum9MouseClicked(evt);
            }
        });

        botonNum8.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum8.setText("8");
        botonNum8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum8MouseClicked(evt);
            }
        });

        botonNum4.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum4.setText("4");
        botonNum4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum4MouseClicked(evt);
            }
        });

        botonNum5.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum5.setText("5");
        botonNum5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum5MouseClicked(evt);
            }
        });

        botonNum6.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum6.setText("6");
        botonNum6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum6MouseClicked(evt);
            }
        });

        botonNum1.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum1.setText("1");
        botonNum1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum1MouseClicked(evt);
            }
        });

        botonNum2.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum2.setText("2");
        botonNum2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum2MouseClicked(evt);
            }
        });

        botonNum3.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum3.setText("3");
        botonNum3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum3MouseClicked(evt);
            }
        });

        botonNum0.setFont(new java.awt.Font("Arial", 0, 14));
        botonNum0.setText("0");
        botonNum0.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonNum0MouseClicked(evt);
            }
        });

        botonIgual.setFont(new java.awt.Font("Arial", 0, 14));
        botonIgual.setText("=");
        botonIgual.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonIgualMouseClicked(evt);
            }
        });

        botonPunto.setFont(new java.awt.Font("Arial", 0, 14));
        botonPunto.setText(".");
        botonPunto.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonPuntoMouseClicked(evt);
            }
        });

        botonDividir.setFont(new java.awt.Font("Arial", 0, 14));
        botonDividir.setText("/");
        botonDividir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonDividirMouseClicked(evt);
            }
        });

        botonMultiplicar.setFont(new java.awt.Font("Arial", 0, 14));
        botonMultiplicar.setText("*");
        botonMultiplicar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonMultiplicarMouseClicked(evt);
            }
        });

        botonSumar.setFont(new java.awt.Font("Arial", 0, 14));
        botonSumar.setText("+");
        botonSumar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonSumarMouseClicked(evt);
            }
        });

        botonRestar.setFont(new java.awt.Font("Arial", 0, 14));
        botonRestar.setText("-");
        botonRestar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                botonRestarMouseClicked(evt);
            }
        });

        menuArchivo.setText("Archivo");

        menuItemLimpiar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
        menuItemLimpiar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/clear.png"))); // NOI18N
        menuItemLimpiar.setText("Limpiar");
        menuItemLimpiar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuItemLimpiarActionPerformed(evt);
            }
        });
        menuArchivo.add(menuItemLimpiar);

        menuItemSalir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));
        menuItemSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/exit.png"))); // NOI18N
        menuItemSalir.setText("Salir");
        menuItemSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuItemSalirActionPerformed(evt);
            }
        });
        menuArchivo.add(menuItemSalir);

        barraDeMenu.add(menuArchivo);

        menuAyuda.setText("Ayuda");
        menuAyuda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuAyudaActionPerformed(evt);
            }
        });

        menuItemSobreAutor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));
        menuItemSobreAutor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/info.png"))); // NOI18N
        menuItemSobreAutor.setText("Sobre el autor");
        menuItemSobreAutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuItemSobreAutorActionPerformed(evt);
            }
        });
        menuAyuda.add(menuItemSobreAutor);

        barraDeMenu.add(menuAyuda);

        setJMenuBar(barraDeMenu);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(campoResultado, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(botonNum4, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botonNum5, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botonNum6, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botonMultiplicar, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(botonNum7, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botonNum8, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botonNum9, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botonDividir, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.CENTER, layout.createSequentialGroup()
                                .addComponent(botonNum0, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(botonPunto, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(botonNum1, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(botonNum2, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(botonIgual, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                            .addComponent(botonNum3, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(botonSumar, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                            .addComponent(botonRestar, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(campoResultado, javax.swing.GroupLayout.DEFAULT_SIZE, 40, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonNum7, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonNum8, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonNum9, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonDividir, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonNum4, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonMultiplicar, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonNum6, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonNum5, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonNum2, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonNum3, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonRestar, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonNum1, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonNum0, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonPunto, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonSumar, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE)
                    .addComponent(botonIgual, javax.swing.GroupLayout.DEFAULT_SIZE, 43, Short.MAX_VALUE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void menuAyudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuAyudaActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_menuAyudaActionPerformed

private void menuItemSobreAutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuItemSobreAutorActionPerformed
    JOptionPane.showMessageDialog(null,
            "Aplicación elaborada por DTIC.Gilberth Molina\n\n"
            + "Contactos a:\n"
            + "Telf: 8761-8695\n"
            + "Facebook: http://www.facebook.com/GiLb3rTh\n\n",
            "Sobre el autor",
            JOptionPane.INFORMATION_MESSAGE);
}//GEN-LAST:event_menuItemSobreAutorActionPerformed

private void menuItemSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuItemSalirActionPerformed
    System.exit(0);
}//GEN-LAST:event_menuItemSalirActionPerformed

private void botonNum7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum7MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("7"));
}//GEN-LAST:event_botonNum7MouseClicked

private void botonNum8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum8MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("8"));
}//GEN-LAST:event_botonNum8MouseClicked

private void botonNum9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum9MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("9"));
}//GEN-LAST:event_botonNum9MouseClicked

private void botonNum4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum4MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("4"));
}//GEN-LAST:event_botonNum4MouseClicked

private void botonNum5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum5MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("5"));
}//GEN-LAST:event_botonNum5MouseClicked

private void botonNum6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum6MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("6"));
}//GEN-LAST:event_botonNum6MouseClicked

private void botonNum1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum1MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("1"));
}//GEN-LAST:event_botonNum1MouseClicked

private void botonNum2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum2MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("2"));
}//GEN-LAST:event_botonNum2MouseClicked

private void botonNum3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum3MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("3"));
}//GEN-LAST:event_botonNum3MouseClicked

private void botonNum0MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonNum0MouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("0"));
}//GEN-LAST:event_botonNum0MouseClicked

private void botonPuntoMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonPuntoMouseClicked
    campoResultado.setText(funcionesCalc.concatenamiento("."));
}//GEN-LAST:event_botonPuntoMouseClicked

private void botonDividirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonDividirMouseClicked
    funcionesCalc.division(campoResultado.getText());
}//GEN-LAST:event_botonDividirMouseClicked

private void botonMultiplicarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonMultiplicarMouseClicked
    funcionesCalc.multiplicacion(campoResultado.getText());
}//GEN-LAST:event_botonMultiplicarMouseClicked

private void botonRestarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonRestarMouseClicked
    funcionesCalc.resta(campoResultado.getText());
}//GEN-LAST:event_botonRestarMouseClicked

private void botonSumarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonSumarMouseClicked
    funcionesCalc.suma(campoResultado.getText());
}//GEN-LAST:event_botonSumarMouseClicked

private void botonIgualMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_botonIgualMouseClicked
    campoResultado.setText("" + funcionesCalc.resultado(campoResultado.getText()));
}//GEN-LAST:event_botonIgualMouseClicked

private void menuItemLimpiarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuItemLimpiarActionPerformed
    campoResultado.setText("0");
    funcionesCalc.limpiar();
}//GEN-LAST:event_menuItemLimpiarActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Windows".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(interfazCalculadora.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(interfazCalculadora.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(interfazCalculadora.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(interfazCalculadora.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            @Override
            public void run() {
                new interfazCalculadora().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar barraDeMenu;
    private javax.swing.JButton botonDividir;
    private javax.swing.JButton botonIgual;
    private javax.swing.JButton botonMultiplicar;
    private javax.swing.JButton botonNum0;
    private javax.swing.JButton botonNum1;
    private javax.swing.JButton botonNum2;
    private javax.swing.JButton botonNum3;
    private javax.swing.JButton botonNum4;
    private javax.swing.JButton botonNum5;
    private javax.swing.JButton botonNum6;
    private javax.swing.JButton botonNum7;
    private javax.swing.JButton botonNum8;
    private javax.swing.JButton botonNum9;
    private javax.swing.JButton botonPunto;
    private javax.swing.JButton botonRestar;
    private javax.swing.JButton botonSumar;
    private javax.swing.JTextField campoResultado;
    private javax.swing.JMenu menuArchivo;
    private javax.swing.JMenu menuAyuda;
    private javax.swing.JMenuItem menuItemLimpiar;
    private javax.swing.JMenuItem menuItemSalir;
    private javax.swing.JMenuItem menuItemSobreAutor;
    // End of variables declaration//GEN-END:variables
}
